package com.learn.design.visitor.test;


import java.time.Instant;

public abstract class AbstractSendSms {

    public String accessKey;

    public String accessSecert;

    private String content;

    private String code;

    private String phone;

    private Instant sendTime;

    private Integer type;


    @Override
    public String toString() {
        return "AbstractSendSms{" +
                "accessKey='" + accessKey + '\'' +
                ", accessSecert='" + accessSecert + '\'' +
                ", content='" + content + '\'' +
                ", code='" + code + '\'' +
                ", phone='" + phone + '\'' +
                ", sendTime=" + sendTime +
                ", type=" + type +
                '}';
    }

    public String getAccessKey() {
        return accessKey;
    }

    public AbstractSendSms setAccessKey(String accessKey) {
        this.accessKey = accessKey;
        return this;
    }

    public String getAccessSecert() {
        return accessSecert;
    }

    public AbstractSendSms setAccessSecert(String accessSecert) {
        this.accessSecert = accessSecert;
        return this;
    }

    public String getContent() {
        return content;
    }

    public AbstractSendSms setContent(String content) {
        this.content = content;
        return this;
    }

    public String getCode() {
        return code;
    }

    public AbstractSendSms setCode(String code) {
        this.code = code;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public AbstractSendSms setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public Instant getSendTime() {
        return sendTime;
    }

    public AbstractSendSms setSendTime(Instant sendTime) {
        this.sendTime = sendTime;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public AbstractSendSms setType(Integer type) {
        this.type = type;
        return this;
    }

    abstract void accept(SendSmsVisitor visitor);
}
